package com.wsl.wechat.log;


import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;



@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class Logtest {
    @Test
    public void test1(){
        String name ="王书亮";
        int  age=23;
        log.info("name ： "+name+" , age" + ": "+age);
        //推荐使用下面这种写法 减少字符串拼接
        log.info("name :{} .age : {}",name,age);
        log.error("asssss error  1111 ");
        log.error("asssss error  32333 ");
        log.error("asssss error  334445 ");
        log.error("asssss error  445556 ");
    }
}
